datetime.py 295 B

1234567891011121314
  1. """For when pip wants to check the date or time.
  2. """
  3. from __future__ import absolute_import
  4. import datetime
  5. def today_is_later_than(year, month, day):
  6. # type: (int, int, int) -> bool
  7. today = datetime.date.today()
  8. given = datetime.date(year, month, day)
  9. return today > given